using MediatR;
using RBAC.Api.Demain.ContentManagement;
using RBAC.Api.Demain.Entities;
using RBAC.Api.Erroc;
using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Read.Command.ContentManagement
{
    /// <summary>
    /// 显示医院列表命令
    /// </summary>
    public class ShowHospitalCommand : IRequest<APIResult<APIPagin<HospitalModel>>>
    {
        /// <summary>
        /// 医院名称
        /// </summary>
        [StringLength(100)]
        public string? Name { get; set; }

        /// <summary>
        /// 医院地址
        /// </summary>
        [StringLength(255)]
        public string? Address { get; set; }

        /// <summary>
        /// 页数
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 条数
        /// </summary>
        public int PageSize { get; set; } = 10;
    }
}